package com.cloudbroker.bcs.csvc.credits.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;

import com.cloudbroker.bcs.csvc.credits.entity.Credits;
import com.cloudbroker.bcs.csvc.credits.service.CreditsService;
import com.cloudbroker.bcs.csvc.credits.dao.CreditsDAO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lili19289 on 2016/10/25.
 */
@Service
public class CreditsServiceImpl extends MycatServiceImplBase implements CreditsService {

    @Resource
    private CreditsDAO creditsDAO;

    public DAOBase  getDAO(){
        return creditsDAO;
    }


    public Credits getByUser(Credits credits) {
        return creditsDAO.getByUser(credits);
    }
}
